package com.mmall.service;

import com.mmall.common.DataSource;
import com.mmall.common.ResponseService;
import com.mmall.pojo.User;

public interface IUserService {

    @DataSource("dataSource2")
    ResponseService login(String username, String password);

    ResponseService register(User user);

    ResponseService checkValid(String str, String type);

    ResponseService forGetQuestion(String username);

    ResponseService CheckAnswer(String username, String question, String answer);

    ResponseService resetPasswordByUserName(String username, String passwordNew, String forgetToken);

    ResponseService resetPasswordByUsernamePass(Integer userId, String passwordNew, String passwordOld);

    ResponseService updateUserInfo(User user);
}
